﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BizControl.Library.BusinessObjects.Marks
{
  class PersonMarkSetter
  {
  }
}
//namespace Library
//{
//  [Serializable]
//  public class PersonsUpdater : CommandBase<PersonsUpdater>
//  {
//    public static readonly PropertyInfo<PersonEdit> Person1Property = RegisterProperty<PersonEdit>(c => c.Person1);
//    public PersonEdit Person1
//    {
//      get { return ReadProperty(Person1Property); }
//      private set { LoadProperty(Person1Property, value); }
//    }

//    public static readonly PropertyInfo<PersonEdit> Person2Property = RegisterProperty<PersonEdit>(c => c.Person2);
//    public PersonEdit Person2
//    {
//      get { return ReadProperty(Person2Property); }
//      private set { LoadProperty(Person2Property, value); }
//    }

//    public static void Update(PersonEdit person1, PersonEdit person2, EventHandler<DataPortalResult<PersonsUpdater>> callback)
//    {
//      var cmd = new PersonsUpdater { Person1 = person1, Person2 = person2 };
//      DataPortal.BeginExecute<PersonsUpdater>(cmd, callback);
//    }

//#if !SILVERLIGHT
//    public static PersonsUpdater Update(PersonEdit person1, PersonEdit person2)
//    {
//      var cmd = new PersonsUpdater { Person1 = person1, Person2 = person2 };
//      return DataPortal.Execute<PersonsUpdater>(cmd);
//    }

//    [Transactional(TransactionalTypes.TransactionScope)]
//    protected override void DataPortal_Execute()
//    {
//      using (var dalManager = DataAccess.DalFactory.GetManager())
//      {
//        Person1 = Person1.Save();
//        Person2 = Person2.Save();
//      }
//    }
//#endif
//  }
//}